﻿@model Dexter.Web.Mvc.ViewModel.Backoffice.ViewsData.PageController.PageDeleteViewData

@{
	ViewBag.Title = "ConfirmDelete";
	Layout = "~/Areas/Admin/Views/Shared/_BackOffice.cshtml";
}

<div class="block-content">
	<div class="task with-legend">
		<div class="legend"><img src="@Url.Content( "~/admin/Resources/images/Icons/Fugue/status.png" )" width="16" height="16">Delete Post</div>
					
		<div class="task-description">
			<ul class="floating-tags float-left">
				<li class="tag-time">@Model.Page.PublishDate.ToShortDateString()</li>
				<li class="tag-user">@Model.Page.Username</li>
			</ul>
						
			<p><strong>Title :</strong>@Model.Page.Title</p>
			<p><strong>Abstract :</strong>@Model.Page.Abstract</p>
			<p><strong>Published :</strong> @Model.Page.IsPublished</p>
			<p><strong>Url: </strong><a href="@U.Page.Detail(Model.Page)"> Click Here</a></p>
			<p><strong>Comments :</strong> @Model.Page.TotalComments</p>
			<p><strong>Trackback :</strong> @Model.Page.TotalTrackback</p>
			<p>
				<strong>Tags :</strong>
				<ul class="keywords">
					@{int c = 0;}
						@foreach(var category in Model.Page.Tags) {
							if (c >3) { c = 0; }
							if (c ==0) {
								<li>@category.Name</li>
							}

							if (c ==1) {
								<li class="orange-keyword">@category.Name</li>
							}

							if (c ==2) {
								<li class="purple-keyword">@category.Name</li>
							}

							if (c ==3) {
								<li class="green-keyword">@category.Name</li>
							}

							c++;
						}
				</ul>
			</p>
						
		</div>
					
		<ul class="task-dialog">
			<li>
				<form method="post" action="../../Delete">
					@Html.AntiForgeryToken()
					@Html.Hidden("id", Model.Page.Id )
					<button type="button" onclick="location.href='@U.Page.Detail(Model.Page)'">View</button>
					<button type="button" onclick="location.href='@U.Page.Edit( Model.Page )'">Edit</button>
					<button type="submit">Confirm Delete</button>
				</form>
			</li>
		</ul>
	</div>
</div>